'''
Created on Jan 18, 2010

@author: christianp
'''

class RequestTms(object):
    
    __base_url = ""
    __format = ""
    #__custom_parameters = {}

    def __init__(self, base_url, format):
        self.__base_url = base_url
        self.__format = format
    
    def getBaseUrl(self):
        return self.__base_url
    
    def getUri(self, key):
        url = self.__base_url + "/" + str(key[2]) + "/" + str(key[0]) + "/" + str(key[1]) + "." + self.__format
        #print("Request TMS: " + url)
        return url